projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e672cc6
)
Fix a tidy issue with src/bin/cargo.rs
author
Alex Crichton
<alex@alexcrichton.com>
Thu, 6 Nov 2014 16:56:34 +0000
(08:56 -0800)
committer
Alex Crichton
<alex@alexcrichton.com>
Thu, 6 Nov 2014 16:56:34 +0000
(08:56 -0800)
src/bin/cargo.rs
patch
|
blob
|
history
diff --git
a/src/bin/cargo.rs
b/src/bin/cargo.rs
index bf7b35839b3d5168b8be265b6563a443b726c034..28a0addc685ce91b9516d9e3e7bf3434fc5a9825 100644
(file)
--- a/
src/bin/cargo.rs
+++ b/
src/bin/cargo.rs
@@
-101,8
+101,9
@@
fn execute(flags: Flags, shell: &mut MultiShell) -> CliResult<Option<()>> {
let (mut args, command) = match flags.arg_command.as_slice() {
"" | "help" if flags.arg_args.len() == 0 => {
shell.set_verbose(true);
- let r = cargo::call_main_without_stdin(execute, shell, USAGE,
- [os::args()[0].clone(), "-h".to_string()], false);
+ let args = &[os::args()[0].clone(), "-h".to_string()];
+ let r = cargo::call_main_without_stdin(execute, shell, USAGE, args,
+ false);
cargo::process_executed(r, shell);
return Ok(None)
}